<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./zijie.js"></script>
</head>
<body>
        <div onclick='clickEvent(1,2)'>点击</div>
</body>
<script>
    let clickEvent = deBounce(handle);
    // let clickEvent = throttle(handle);
    function handle(a,b){
        console.log('---执行---',this,a,b);
    }

    // let event = new EventBus();
    // event.addListener('click',()=>{
    //     console.log('---点击----');
    // })
    // function clickEvent(){
    //     event.emit('click')
    // }
    // console.log([1, [2, [3, [4, 5]]]].flat(Infinity))
   
  
</script>
</html>